|
stepper28 2.2.0
|
This file contains API for Stepper 28 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | stepper28_t |
| Stepper 28 Click context object. More... | |
| struct | stepper28_cfg_t |
| Stepper 28 Click configuration object. More... | |
Enumerations | |
| enum | stepper28_return_value_t { STEPPER28_OK = 0 , STEPPER28_ERROR = -1 } |
| Stepper 28 Click return value data. More... | |
Functions | |
| void | stepper28_cfg_setup (stepper28_cfg_t *cfg) |
| Stepper 28 configuration object setup function. | |
| err_t | stepper28_init (stepper28_t *ctx, stepper28_cfg_t *cfg) |
| Stepper 28 initialization function. | |
| err_t | stepper28_default_cfg (stepper28_t *ctx) |
| Stepper 28 default configuration function. | |
| err_t | stepper28_write_register (stepper28_t *ctx, uint8_t reg, uint8_t data_in) |
| Stepper 28 write register function. | |
| err_t | stepper28_read_register (stepper28_t *ctx, uint8_t reg, uint8_t *data_out) |
| Stepper 28 read register function. | |
| err_t | stepper28_get_step_mode (stepper28_t *ctx, uint8_t *mode) |
| Stepper 28 get step mode function. | |
| err_t | stepper28_set_step_mode (stepper28_t *ctx, uint8_t mode) |
| Stepper 28 set step mode function. | |
| err_t | stepper28_get_torque (stepper28_t *ctx, uint8_t *torque) |
| Stepper 28 get torque function. | |
| err_t | stepper28_set_torque (stepper28_t *ctx, uint8_t torque) |
| Stepper 28 set torque function. | |
| err_t | stepper28_get_decay (stepper28_t *ctx, uint8_t *decay) |
| Stepper 28 get decay function. | |
| err_t | stepper28_set_decay (stepper28_t *ctx, uint8_t decay) |
| Stepper 28 set decay function. | |
| err_t | stepper28_get_sleep_x_pin (stepper28_t *ctx, uint8_t *state) |
| Stepper 28 get sleep x pin function. | |
| err_t | stepper28_set_sleep_x_pin (stepper28_t *ctx, uint8_t state) |
| Stepper 28 set sleep x pin function. | |
| err_t | stepper28_get_lo1_pin (stepper28_t *ctx, uint8_t *state) |
| Stepper 28 get lo1 pin function. | |
| err_t | stepper28_get_lo2_pin (stepper28_t *ctx, uint8_t *state) |
| Stepper 28 get lo2 pin function. | |
| err_t | stepper28_get_mo_pin (stepper28_t *ctx, uint8_t *state) |
| Stepper 28 get mo pin function. | |
| err_t | stepper28_get_rst_pin (stepper28_t *ctx, uint8_t *state) |
| Stepper 28 get RST pin function. | |
| err_t | stepper28_set_rst_pin (stepper28_t *ctx, uint8_t state) |
| Stepper 28 set RST pin function. | |
| err_t | stepper28_reset_device (stepper28_t *ctx) |
| Stepper 28 reset device function. | |
| void | stepper28_drive_motor (stepper28_t *ctx, uint32_t steps, uint8_t speed) |
| Stepper 28 driver motor function. | |
| void | stepper28_enable_device (stepper28_t *ctx) |
| Stepper 28 enable device function. | |
| void | stepper28_disable_device (stepper28_t *ctx) |
| Stepper 28 disable device function. | |
| void | stepper28_set_direction (stepper28_t *ctx, uint8_t dir) |
| Stepper 28 set direction function. | |
| void | stepper28_switch_direction (stepper28_t *ctx) |
| Stepper 28 switch direction function. | |
| uint8_t | stepper28_get_int_pin (stepper28_t *ctx) |
| Stepper 28 get int pin function. | |
| void | stepper28_set_clk_pin (stepper28_t *ctx, uint8_t state) |
| Stepper 28 set clk pin function. | |
This file contains API for Stepper 28 Click Driver.